﻿using Application.Core;
using Application.Core.IoC;
using Application.Services;

namespace Application
{
    public class AppRegistry : IIoCRegistry
    {
        public void Register()
        {
            AppEngine.Container.Add(typeof(ICommonService<>), typeof(CommonService<>), Lifecycle.UniquePerRequest);
            AppEngine.Container.Add<ISeedService, DefaultSeedService>(Lifecycle.UniquePerRequest);
            AppEngine.Container.Add<ISettingService, SettingService>(Lifecycle.UniquePerRequest);
            AppEngine.Container.Add<IAdminService, AdminService>(Lifecycle.UniquePerRequest);
            AppEngine.Container.Add<IAccountService, AccountService>(Lifecycle.UniquePerRequest);
        }
    }
}